#pragma once

#include <SFML\System.hpp>
#include <SFML\Graphics.hpp>

#include "Graphics\Picture.h"
#include "Graphics\Object.h"

#include "Objects\Player.h"

#include <sstream>

#define S_RUNNING		1
#define S_USEREXIT		0
#define S_ERROREXIT	   -1

class Game
{
public:
	Game();

	bool Init(char* host);
	void Loop();
	void Exit();

	int State() {
		return m_state;
	}

	char* Error() {
		return m_error;
	}

private:

	int m_state;
	char* m_error;
	float m_framerate;

	sf::String fps_string;
	sf::Event m_event;
	sf::RenderWindow m_window;

	Picture m_background;

	// Objects
	Player* pPlayer;
};